def is_palindrome(string: str) -> bool:
    return string == string[::-1]

assert is_palindrome("топот") is True
assert is_palindrome("гром") is False
assert is_palindrome("потоп") is True
assert is_palindrome("компьютер") is False

# =========================
string = "топот"
print(string == string[::-1])